#ifndef __RM_BACKAPP_H
#define __RM_BACKAPP_H

#include "key.h"
#include "Ranging_C.h"
#include "Flash.h"

#define Check_MDOD_1          1
#define Check_MDOD_2          2
#define Check_MDOD_3          3
#define Check_MDOD_4          4
#define Check_MDOD_5          5
#define Check_MDOD_6          6
#define Check_MDOD_7          7
#define Check_MDOD_8          8

typedef struct
{
	uint8_t Mode;
	uint8_t Mode_ONOFF;	
	uint8_t Rang;
	uint8_t St;	
	uint16_t Dist_val;	
	uint16_t RX_SET_V_add;
	uint16_t RX_SET_V;
	uint16_t RX_SET_V_diwen;    
	uint16_t pa_time;	
	uint16_t Dist_val_check_10M;	
	uint16_t Dist_val_check_245M;	
	uint16_t Dist_val_check_dz;	
	uint8_t Rang_Next;
	uint16_t sum;	
}_Back_par;

extern _Back_par Back_par;

void Back_Mode(void);
extern u8 Angle_biaoding;
extern u8 Angle_zero_flag;
#endif
